package com.lagou.lagouservicecode.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.nio.charset.Charset;

/**
 * @Authther: mrwu
 * @date:2021/4/14-04
 * @Description:com.lagou.lagouservicecode.service
 */
@FeignClient(name = "mail-service")//访问的服务名称
public interface MailService {
    @GetMapping("/email")//服务地址
    boolean sendCode(@RequestParam("email") String email,@RequestParam("content") String content);
}
